package com.zlq.cn.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 小情侣-时光
 * </p>
 *
 * @author zhoucl
 * @since 2022-05-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("lovers_time")
@ApiModel(value="LoversTime对象", description="小情侣-时光")
public class LoversTime implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "时光id")
    @TableId(value = "lovers_time_id", type = IdType.AUTO)
    private Integer loversTimeId;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "标签")
    private String tag;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "图片")
    private String images;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @TableField(exist = false)
    @ApiModelProperty(value = "用户昵称")
    private String userName;

    @TableField(exist = false)
    @ApiModelProperty(value = "用户头像")
    private String avatar;
}
